package com.example.sens.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.example.sens.entity.Quiz;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface QuizMapper extends BaseMapper<Quiz> {
    int deleteByPrimaryKey(Long id);

    int insertSelective(Quiz record);

    int insertQuiz(Quiz record);

    Quiz selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Quiz record);

    int updateByPrimaryKeyWithBLOBs(Quiz record);

    List<Quiz> getByPage(Pagination pagination);

    List<Quiz> selectByQuizIds(@Param("quizIds") List<Long> quizIds);
}